﻿@model KnowledgeCommunity.Web.Models.RegisterModel

@{
    ViewBag.Title = "Register";
}

<div class="path one columns">
   创建新账户
   <h6>输入密码时注意，字符长度不得小于 @Membership.MinRequiredPasswordLength 字符数！</h6> 
</div>

<div class="slider"></div>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "Account creation was unsuccessful. Please correct the errors and try again.")
    <div class="columns three-fourths">
        <div class="contactform">
        <p>
            用户名
        </p>
            @Html.TextBoxFor(m => m.UserName)
            @Html.ValidationMessageFor(m => m.UserName)
        <br/>
        <p>
            e-mail
        </p>
            @Html.TextBoxFor(m => m.Email)
            @Html.ValidationMessageFor(m => m.Email)
        <p>
           联系方式
        </p>
           @Html.TextBoxFor(m => m.Telephone)
           @Html.ValidationMessageFor(m => m.Telephone)
        <p>
           密码
         </p>
           @Html.PasswordFor(m => m.Password)
           @Html.ValidationMessageFor(m => m.Password)
         <p>
           确认密码
         </p>
           @Html.PasswordFor(m => m.ConfirmPassword)
           @Html.ValidationMessageFor(m => m.ConfirmPassword)
        <br/>
        <input class="button" id="Register" name="Register" type="submit" value="注册" />
        <input class="button2" name="Reset" type="reset" value="Reset" />
        <div id="contactResult"></div>
        </div>
    </div>
}

<div class="columns four_last">
    <div class="sidebar">
    <div class="title">会员特权</div>
    <p><b>@Html.ActionLink("注册", "Register")</b>会员将拥有更多的知识享用<b><a href="@Url.Action("UserGuide", "Topic")">特权</a></b>哦！</p>
    <p>点击 <b>@Html.ActionLink("注册", "Register") </b>吧. 开始享受<b><a href="@Url.Action("UserGuide", "Topic")">特权</a></b>游戏</p>
    </div>
</div>
<div class="clear"></div>
